
<html>
<head>
	<title>两列布局</title>
	<style type="text/css">
		body{
				margin: 0;
				padding: 0;
			}
		.main{
			width: 800px;
			margin: 0 auto;
		}
		.left{
			width: 300px;
			height: 500px;
			float: left;
			background: red;
		}
		.right{
			width: 500px;
			height: 500px;
			float: right;
			background: green;
		}
	</style>
</head>
<body>
<div class="main">
<div class="left"></div>
<div class="right"></div>
</div>
</body>
</html>